﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace WumpusTest
{
	public struct CaveStructure
	{
		public int current;
		public int north;
		public int east;
		public int south;
		public int west;
		public int northEast;
		public int southEast;
		public int southWest;
		public int northWest;

		public string selectedCave;
	}
	class Cave
	{
		List<CaveStructure> CaveSystem = new List<CaveStructure>();

		CaveStructure c;

		

		public Cave()
		{
			CaveSystemSelect();
		}

		public void CaveSystemSelect() 
		{
			TextReader tR = new StreamReader(SystemSelect);

			string input = tR.ReadLine();

			while (input != null)
			{
				string[] data = input.Split(',');
				c.current = int.Parse(data[0]);
				c.north = int.Parse(data[1]);			
				c.northEast = int.Parse(data[2]);			
				c.southEast = int.Parse(data[3]);
				c.south = int.Parse(data[4]);
				c.southWest = int.Parse(data[5]);
				c.northWest = int.Parse(data[6]);

				CaveSystem.Add(c);
				input = tR.ReadLine();
			}

			tR.Close();
		}

		public CaveStructure GetRoomInfo(int Playerloc) 
		{
			return CaveSystem[Playerloc - 1];
		}

	}

}
